#include "heap.hpp"
#include <iostream>

using namespace std;
int main()
{
   Heap heap(4);
   heap.Push(8);
   heap.Push(6);
   heap.Push(23);
   heap.Push(61);
   heap.Push(132);
   heap.Push(14);
   heap.Push(17);
    while (!heap.Empty())
    {
        cout << heap.Top() << " " << heap.Size() << endl;
        heap.Pop();
    }
    cout << heap.Size() <<" " << heap.Empty() <<  endl;

    return 0;
}